package com.cxz.study.feign.api;

import com.cxz.study.definition.OrderServiceDefinition;
import com.cxz.study.common.Result;
import com.cxz.study.dto.CreateOrderReq;
import com.cxz.study.dto.CreateOrderResp;
import com.cxz.study.feign.fallback.OrderServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @className: OrderServiceFeign
 * @author: ocxz1
 * @date: 2025/6/15 下午3:04
 * @Version: 1.0
 * @description: ddd-struct3
 */
@FeignClient(name = "order-service", fallback = OrderServiceFallBack.class)
public interface OrderServiceFeign extends OrderServiceDefinition {

    @RequestMapping("/api/order/createOrder")
    @Override
    Result<CreateOrderResp> createOrder(@RequestBody CreateOrderReq req);
}

    
    